package com.ruoyi.project.system.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 订单对象 sys_order
 *
 * @author orange
 * @date 2022-04-09
 */
public class SysOrder extends BaseEntity {
  private static final long serialVersionUID = 1L;

  /** 订单id */
  private Long orderId;

  /** 订单的发起人编号 */
  @Excel(name = "订单的发起人编号")
  private Long ownder;

  /** 总价钱 */
  @Excel(name = "总价钱")
  private BigDecimal allPrice;

  /** 货物的编码列 */
  @Excel(name = "货物的编码列")
  private String goodsList;

  /** 配送地址编号 */
  @Excel(name = "配送地址编号")
  private Long addressId;

  /** 配送费 */
  @Excel(name = "配送费")
  private BigDecimal expressPrice;

  /** 订单的状态 */
  @Excel(name = "订单的状态 ")
  private Long orderStatus;

  /** 骑手编号 */
  @Excel(name = "骑手编号")
  private Long expressId;

  /** 商家备注 */
  @Excel(name = "商家备注")
  private String businessRemark;

  public Long getOrderId() {
    return orderId;
  }

  public void setOrderId(Long orderId) {
    this.orderId = orderId;
  }

  public Long getOwnder() {
    return ownder;
  }

  public void setOwnder(Long ownder) {
    this.ownder = ownder;
  }

  public BigDecimal getAllPrice() {
    return allPrice;
  }

  public void setAllPrice(BigDecimal allPrice) {
    this.allPrice = allPrice;
  }

  public String getGoodsList() {
    return goodsList;
  }

  public void setGoodsList(String goodsList) {
    this.goodsList = goodsList;
  }

  public Long getAddressId() {
    return addressId;
  }

  public void setAddressId(Long addressId) {
    this.addressId = addressId;
  }

  public BigDecimal getExpressPrice() {
    return expressPrice;
  }

  public void setExpressPrice(BigDecimal expressPrice) {
    this.expressPrice = expressPrice;
  }

  public Long getOrderStatus() {
    return orderStatus;
  }

  public void setOrderStatus(Long orderStatus) {
    this.orderStatus = orderStatus;
  }

  public Long getExpressId() {
    return expressId;
  }

  public void setExpressId(Long expressId) {
    this.expressId = expressId;
  }

  public String getBusinessRemark() {
    return businessRemark;
  }

  public void setBusinessRemark(String businessRemark) {
    this.businessRemark = businessRemark;
  }

  @Override
  public String toString() {
    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
        .append("orderId", getOrderId())
        .append("ownder", getOwnder())
        .append("allPrice", getAllPrice())
        .append("goodsList", getGoodsList())
        .append("addressId", getAddressId())
        .append("expressPrice", getExpressPrice())
        .append("orderStatus", getOrderStatus())
        .append("remark", getRemark())
        .append("expressId", getExpressId())
        .append("businessRemark", getBusinessRemark())
        .append("createTime", getCreateTime())
        .append("updateTime", getUpdateTime())
        .toString();
  }
}
